<!--%import("filter/delete_checked.xml")-->
<!--%import("filter/insert_config.xml")-->
<!--%import("js/trackback_admin.js")-->

<h3 class="xeAdmin">{$lang->trackback} <span class="gray">{$lang->cmd_management}</span></h3>

<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
<table cellspacing="0" class="rowTable topGap">
<tr class="row2">
    <th scope="col"><div>{$lang->enable_trackback}</div></th>
</tr>
<tr>
    <td>
        <input type="checkbox" name="enable_trackback" value="Y" size="3" <!--@if($config->enable_trackback=='Y')-->checked="checked"<!--@end-->/> {$lang->cmd_use}
        <p>{$lang->about_enable_trackback}</p>
    </td>
</tr>
<tr class="row2">
    <th class="button"><span class="button black strong"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span></th>
</tr>
</table>
</form>

<!-- 검색 -->
<div class="fl">
    <form action="./" method="get" class="adminSearch">
    <input type="hidden" name="module" value="{$module}" />
    <input type="hidden" name="act" value="{$act}" />
    <input type="hidden" name="module_srl" value="{$module_srl}" />

        <fieldset>
            <select name="search_target">
                <option value="">{$lang->search_target}</option>
                <!--@foreach($lang->search_target_list as $key => $val)-->
                <option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
                <!--@end-->
            </select>
            <input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText" />
            <span class="button blue"><input type="submit" value="{$lang->cmd_search}" /></span>
            <a href="{getUrl('','module',$module,'act',$act)}" class="button black"><span>{$lang->cmd_cancel}</span></a>
        </fieldset>
    </form>
</div>

<form id="fo_list" action="./" method="get" onsubmit="return procFilter(this, delete_checked)">
<input type="hidden" name="page" value="{$page}" />

<!-- 모듈 선택 -->
<div class="fr">
    <a href="{getUrl('','module','module','act','dispModuleSelectList','id','target_module','type','single')}" onclick="popopen(this.href,'ModuleSelect');return false;" class="button green"><span>{$lang->cmd_find_module}</span></a>
    <span class="button red"><input type="submit" value="{$lang->cmd_delete_checked_trackback}" /></span>
</div>


<!-- 목록 -->
<table cellspacing="0" class="rowTable clear">
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
<thead>
    <tr>
        <th scope="col"><div>{$lang->no}</div></th>
        <th scope="col"><div><input type="checkbox" onclick="XE.checkboxToggleAll(); return false;" /></div></th>
        <th scope="col"><div>{$lang->blog_name}</div></th>
        <th scope="col" class="wide"><div>{$lang->title}</div></th>
        <th scope="col"><div>{$lang->date}</div></th>
        <th scope="col"><div>{$lang->ipaddress}</div></th>
    </tr>
</thead>
<tbody>
    <!--@foreach($trackback_list as $no => $val)-->
    <tr class="row{$cycle_idx}">
        <td rowspan="2" class="center number" scope="col">{$no}</td>
        <td rowspan="2" class="center"><input type="checkbox" name="cart" value="{$val->trackback_srl}" /></td>
        <td rowspan="2"><div class="w200"><a href="{$val->url}" onclick="window.open(this.href); return false;">{$val->blog_name}</a></div></td>
        <td ><a href="{getUrl('','document_srl',$val->document_srl)}#trackback_{$val->trackback_srl}" onclick="window.open(this.href);return false;">{$val->title}</a></td>
        <td class="date center nowrap">{zdate($val->regdate,"Y-m-d")}</td>
        <td class="number left nowrap"><a href="{getUrl('search_target','ipaddress','search_keyword',$val->ipaddress)}">{$val->ipaddress}</a></td>
    </tr>
    <tr>
        <td colspan="3">
            {$val->excerpt}
        </td>
    </tr>
    <!--@end-->
</tbody>
</table>
</form>


<!-- 페이지 네비게이션 -->
<div class="pagination a1">
    <a href="{getUrl('page','','module_srl','')}" class="prevEnd">{$lang->first_page}</a> 
    <!--@while($page_no = $page_navigation->getNextPage())-->
        <!--@if($page == $page_no)-->
            <strong>{$page_no}</strong> 
        <!--@else-->
            <a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a> 
        <!--@end-->
    <!--@end-->
    <a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="nextEnd">{$lang->last_page}</a>
</div>
